package com.itheima.day09;

public class Demo5 {
    private double side;

    public Demo5() {
    }

    public Demo5(double side) {
        this.side = side;
    }

    public double getSide() {
        return side;
    }

    public void setSide(double side) {
        this.side = side;
    }
    public double perimeter(){
       double perimeter = side * 4;
       return perimeter;
    }
    public double area(){
        double area = side * side;
        return area;
    }
}
